package hutech.ksv.view;

import hutech.ksv.entity.ViTriTuyenDungEntity;
import hutech.ksv.service.ViTriTDService;

import java.io.Serializable;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Component
@Scope("session")
public class ViTriTDManageBean implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Autowired
	ViTriTDService vtService;
	
	private int maVTTD;
	public int getMaVTTD() {
		return maVTTD;
	}
	public void setMaVTTD(int maVTTD) {
		this.maVTTD = maVTTD;
	}
	public String getTenVTTD() {
		return tenVTTD;
	}
	public void setTenVTTD(String tenVTTD) {
		this.tenVTTD = tenVTTD;
	}
	private String tenVTTD;
	
	public String insert(){
		ViTriTuyenDungEntity vitri = new ViTriTuyenDungEntity();
		vitri.setTenVTTD(tenVTTD);
		vtService.insertVTTuyenDung(vitri);
		return "";
	}
}
